package process2

import (
	message "chat/common"
	"encoding/json"
	"net"
)

type SmsProcess struct {
	Conn net.Conn
}

func (that *SmsProcess) ServerProcessSms(mes *message.Message) {
	var smsMes message.SmsMes
	json.Unmarshal([]byte(mes.Data), &smsMes)

	for id, up := range userMgr.onlineUsers {
		if id == smsMes.UserId {
			continue
		}
		up.SmsOpen(mes)
	}
}
